# from sys import exec_prefix


# import sqlite3

# conn = sqlite3.connect('test.db')
# cursor = conn.cursor()
# cursor.execute('select * from user where id=?', ('1',))
# cursor.close()
# conn.commit()
# conn.close()



# try:
#     1 / 0
# except NameError:
#     print('name error')
# except ModuleNotFoundError:
#     print("model")
# except BaseException as e:
#     print(repr(e))
# else:
#     print('no')
# finally:
#     print('yes')


# if isinstance('fd', str):
#     print('yes')
# else:
#     print('no')

# arbitrary argument
def Arbitrary_Arguments(*aa):
    print(aa)

# Keyword argument
def kw(name, age, **kw):
    print("name:", name, "\nage:", age, "\nother:", kw)
    
# name key word
def kb(name, age=24, *, city, sex):
    print(name, age, city, sex)

info = {"city": "Beijing", "sex": "man"}
# kw("bob", 24, **info)

kb("bob", city='Beijing', sex='male')